import Request from '@utils/request'

export default {
  // 热搜榜
  searchHotList (params) {
    return Request({
      url: '/search/hot/detail',
      method: 'GET',
      params
    })
  },
  // 搜索建议
  searchSuggest (params) {
    return Request({
      url: '/search/suggest?type=mobile&keywords=' + params,
      method: 'GET'
    })
  },
  // 搜索多匹配
  searchMatch (data) {
    return Request({
      url: '/search/multimatch',
      method: 'GET',
      data
    })
  },
  // 搜索结果
  searchResult (data) {
    return Request({
      url: '/search',
      method: 'GET',
      data
    })
  },
  // 歌曲详情
  songDetail (data) {
    return Request({
      url: '/song/detail',
      method: 'GET',
      data
    })
  }
}